package com.fire.control.system.module.warning.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.fire.control.system.dto.SelectWarningDescDTO;
import com.fire.control.system.entity.WarningProtocol;

public interface WarningProtocolMapper {

	
	@Select("select * from t_warning_protocol where fport=#{fport}")
	public WarningProtocol getWarningProtocolByFport(@Param("fport")String fport);
	
	/**
	 * @author: xiechengguang 
	 * @Title: getWarningDescs   
	 * @Description: 获取所有下拉报警描述  
	 */
	@Select("select id,name from t_warning_protocol")
	public List<SelectWarningDescDTO> getWarningDescs(); 
	
}
